package com.haoran.grope.client;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQClient {
	@Autowired
	private RabbitTemplate rabbitTemplate;

	public void send(String message,String routerKey) {
		rabbitTemplate.convertAndSend("fanout-exchange", routerKey, message);
	}
}
